# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgname=perl-common-sense
pkgver=3.75
pkgrel=1
pkgdesc="Implements some sane defaults for Perl programs"
arch=('any')
groups=('perl-modules')
url="https://metacpan.org/release/common-sense"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/M/ML/MLEHMANN/common-sense-$pkgver.tar.gz")
sha256sums=('a86a1c4ca4f3006d7479064425a09fa5b6689e57261fcb994fe67d061cba0e7e')

build() {
  cd common-sense-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd common-sense-$pkgver
  make test
}

package() {
  cd common-sense-$pkgver
  make DESTDIR="$pkgdir" install
}
